
import 'dart:convert';

class _TestEnum{
  static const v1 = 0;
  static const v2 = 1;
}

class _TestBean{
  final int te;
  final String name;

  _TestBean(this.te, this.name);

}

void main(){
  final t = _TestBean(_TestEnum.v1, "name");
  final String json = jsonEncode(t);
  print(json);
}